<?php


namespace app\admin\controller;


use come\Controller;
use come\Session;

class AdminBase extends Controller
{
    protected $loginInfo = null;

    function __construct()
    {
        parent::__construct();
        if(Session::has("session_user")){
            $this->loginInfo = Session::get("session_user");
            $this->assign('_user',$this->loginInfo);
        }else{
            $this->redirect("/index/user/adminLogin");
        }
    }
}